package com.feiluan.config.mqtt;

/**
 * 井盖
 *
 * @author yye
 *
 */
public abstract class MQTTManholeCoverPublishConfig {


	protected final String broker = "a1xJ8rA7JCW.iot-as-mqtt.cn-shanghai.aliyuncs.com";
	protected final int qos = 0;

	protected Boolean hasSSL = false;

	protected Integer port = 1883;
	protected final String userName = "jxpOi5NaIBm67iaFybWN&a1xJ8rA7JCW";
	protected final String password = "619207CA47EB9A1F12B014BD99DE9D8E370C0E2E";
	protected final String TCP = "tcp://";
	protected final String SSL = "ssl://";

	public static final String topic = "/sys/a1xJ8rA7JCW/jxpOi5NaIBm67iaFybWN/thing/event/property/post";

	/**
	 * Custom Configuration
	 *
	 * @param broker
	 * @param port
	 * @param ssl
	 * @param withUserNamePass
	 */
	protected abstract void config(String broker, Integer port, Boolean ssl, Boolean withUserNamePass);

	/**
	 * Default Configuration
	 */
	protected abstract void config();
}
